#define _CRT_SECURE_NO_WARNINGS 1

# include<bits/stdc++.h>
using namespace std;


int main()
{
    int l = 0, n = 0;
    cin >> l >> n;
    int tmp = l;
    string str;
    while (tmp--)    str += 'z';
    while (--n)
    {
        --str[l - 1];
        for (int i = l - 1; i > 0; --i)
        {
            if (str[i] < 'a')
            {
                str[i] = 'z';
                str[i - 1]--;
            }
        }
    }
    cout << str;
    return 0;
}


# include<bits/stdc++.h>
using namespace std;


int main()
{
    string str;
    getline(cin, str);
    for (int i = 0; i < str.size(); ++i)
    {
        if (str[i] == '6')
        {
            int j = i, cnt = 0;
            while (str[j] == '6')    ++j, ++cnt;
            if (cnt > 9)
            {
                cout << 27;
            }
            else if (cnt > 3)
            {
                cout << 9;
            }
            else
            {
                while (cnt--)    cout << 6;
            }
            i = j - 1;
        }
        else cout << str[i];
    }
    return 0;
}